import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import UserList from './views/nav1/UserList.vue'
import TemplateList from './views/nav1/TemplateList.vue'
import TemplateFrom from './views/nav1/Form.vue'
import messageCount from './views/nav1/MessageCount.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '用户管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/userList', component: UserList, name: '用户列表' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '模版管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/messageCount', component: messageCount, name: '当前发送情况' },
            { path: '/pushMessage', component: TemplateFrom, name: '发送消息' },
            { path: '/templateList', component: TemplateList, name: '模板列表' },
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;